package com.rtp.transformer.parser.pojo;

import java.util.List;
/**
 * account category
 * @author xueming
 *
 */
public class AccountCategory {

	private List items;
	private String accountNumber;
	private String name;
	private Double debitTotal;
	private Double creditTotal;
	private Double balance;
	public Double getBalance() {
		return balance;
	}
	public void setBalance(Double balance) {
		this.balance = balance;
	}
	public List getItems() {
		return items;
	}
	public void setItems(List items) {
		this.items = items;
	}
	public String getAccountNumber() {
		return accountNumber;
	}
	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public Double getDebitTotal() {
		return debitTotal;
	}
	public void setDebitTotal(Double debitTotal) {
		this.debitTotal = debitTotal;
	}
	public Double getCreditTotal() {
		return creditTotal;
	}
	public void setCreditTotal(Double creditTotal) {
		this.creditTotal = creditTotal;
	}
	@Override
	public int hashCode() {
		return ((accountNumber == null) ? 0 : accountNumber.hashCode());		 
	}
	@Override
	public boolean equals(Object obj) {		
		AccountCategory ac = (AccountCategory)obj;		
		if(ac==null||ac.accountNumber==null)
			return false;
		return ac.accountNumber.equals(this.accountNumber);
	}
	 
	
}
